<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>

    <a href="./b.html">
        <h1 id="title"></h1>
    </a>

    <script>
        var id = 1234;
        title.innerHTML = id;
        sessionStorage.setItem("id2", 1234);

        // title.onclick=function(){
        //     // 1.第一种
        //     // location.href="./b.html?id="+id;
        //     location.href='./b.html';
        //     localStorage.setItem("id",id)
        // }


        // 后面详解
        // 歌手页面  https://autumnfish.cn/top/artists?offset=0&limit=50

        // 发出请求
        fetch("https://autumnfish.cn/top/artists?offset=0&limit=50").then(r => r.json()).then(r => {
            console.log(r);

  
        })



      // 歌手详情页面  https://autumnfish.cn/artist/detail?id=歌手的id (不用渲染页面)


    </script>
</body>

</html>